/*
 * @Descripttion: UUID
 * @version:
 * @Author: lfzxs@qq.com
 * @Date: 2022-11-29 08:55:02
 * @LastEditors: lfzxs@qq.com
 * @LastEditTime: 2022-11-29 16:45:22
 */
package id

import (
	"gitee.com/g_boot/gfextend/types"
	"github.com/google/uuid"
)

func init() {
	IDGen := Uuid{}
	Regist(IDGen.GetName(), &IDGen)
}

type Uuid struct {
}

func (self *Uuid) GetName() string {
	return "uuid"
}

func (self *Uuid) GenId(pairs ...types.Pair) string {
	return uuid.New().String()
}
